//
//  ZTFontManager.m
//  ScreeningOfNewFont
//
//  Created by LuckyStrike on 2017/5/20.
//  Copyright © 2017年 LuckyStrike. All rights reserved.
//

#import "ZTFontManager.h"
#import <UIKit/UIKit.h>

@implementation ZTFontManager

+ (BOOL)checkExistForNewFont{
    
    NSArray *nativeFamilyNmaes = [ZTFontManager getNativeFamilyNmaes];
    NSArray *allFamilyNmaes = [UIFont familyNames];
    return ![nativeFamilyNmaes isEqualToArray:allFamilyNmaes];
}

+ (NSArray*)getNewFamilyNmae{

    NSMutableArray *temp = [NSMutableArray arrayWithCapacity:1];
    NSArray *nativeFamilyNmaes = [ZTFontManager getNativeFamilyNmaes];
    NSArray *allFamilyNmaes = [UIFont familyNames];
    
    for (NSString *str in allFamilyNmaes) {
        if (![nativeFamilyNmaes containsObject:str]) {
            [temp addObject:str];
        }
    }
    return temp;
}

+ (NSArray*)getNativeFamilyNmaes{
    return @[@"Copperplate",@"Heiti SC",@"Kohinoor Telugu",@"Thonburi",@"Heiti TC",@"Courier New",@"Gill Sans",@"Apple SD Gothic Neo",@"Marker Felt",@"Avenir Next Condensed",@"Tamil Sangam MN",@"Helvetica Neue",@"Gurmukhi MN",@"Times New Roman",@"Georgia",@"Apple Color Emoji",@"Arial Rounded MT Bold",@"Kailasa",@"Kohinoor Devanagari",@"Kohinoor Bangla",@"Chalkboard SE",@"Sinhala Sangam MN",@"PingFang TC",@"Gujarati Sangam MN",@"Damascus",@"Noteworthy",@"Geeza Pro",@"Avenir",@"Academy Engraved LET",@"Mishafi",@"Futura",@"Farah",@"Kannada Sangam MN",@"Arial Hebrew",@"Arial",@"Party LET",@"Chalkduster",@"Hoefler Text",@"Optima",@"Palatino",@"Lao Sangam MN",@"Malayalam Sangam MN",@"Al Nile",@"Bradley Hand",@"PingFang HK",@"Trebuchet MS",@"Helvetica",@"Courier",@"Cochin",@"Hiragino Mincho ProN",@"Devanagari Sangam MN",@"Oriya Sangam MN",@"Snell Roundhand",@"Zapf Dingbats",@"Bodoni 72",@"Verdana",@"American Typewriter",@"Avenir Next",@"Baskerville",@"Khmer Sangam MN",@"Didot",@"Savoye LET",@"Bodoni Ornaments",@"Symbol",@"Menlo",@"Bodoni 72 Smallcaps",@"Papyrus",@"Hiragino Sans",@"PingFang SC",@"Myanmar Sangam MN",@"Euphemia UCAS",@"Telugu Sangam MN",@"Bangla Sangam MN",@"Zapfino",@"Bodoni 72 Oldstyle"];




}

@end
